import { buildProps, definePropType } from "@/components/windows/utils/vue/props/runtime.ts";
import type { MessageConfigContext } from "@/components/windows/components/message/src/message.ts";
import { useSizeProp } from "@/components/windows/hooks/use-size";
import type { AppConfigContext } from "@/components/windows/components/app-config/src/app-config.ts";
import type { ExtractPropTypes } from 'vue' // 新增导入
export const configProviderProps = buildProps({
  /**
   * @description 用户导入的 apps 列表
   */
  apps: {
    type: definePropType<AppConfigContext>(Object),
    default: () => ({}),
  },
  message: {
    type: definePropType<MessageConfigContext>(Object),
  },
  size: useSizeProp,
})

export type ConfigProviderProps = ExtractPropTypes<typeof configProviderProps>
